﻿using Microsoft.SharePoint;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ToggleLanguage.Helper
{
   public static class Utilities
    {

        #region Const
        public const string CookieLanguage = "ToggleLanguage";
        public const string HttpModuleName = "ToggleLanguage";
        public const string OwnerHttpModule = "HttpmoduleToggleLanguage";
        public const string OwnerModule = "ModuleToggleLanguage";

        #endregion
        #region Public method

        public static List<CultureInfo> GetLanguageWeb(SPWeb web)
        {
            return web.SupportedUICultures.ToList();
        } 
        #endregion


    }
}
